#!/usr/bin/env python3
import random

"""
双色球规则
1. 双色球分为红球和蓝球
2. 红球有 6 个号码，从 1-33 中随机选择
3. 蓝球有 1 个号码，从 1-16 中随机选择
"""

def get_red_balls():
    reds = random.sample(range(1, 34), 6)
    return map(red, sorted(reds))

def get_blue_ball():
    return blue(random.randint(1, 16))

def union_lotto():
    reds = get_red_balls()
    blue = get_blue_ball()
    return '\t'.join([*reds, blue])

def red(msg):
    return f'\x1b[1;31m{msg}\x1b[0m'

def blue(msg):
    return f'\x1b[1;34m{msg}\x1b[0m'


if __name__ == '__main__':
    num = input("需要几注？")
    for i in range(int(num)):
        print(union_lotto())
